<template>
  <div>
    <h3>我是Title</h3>
    <h5>{{count}}</h5>
  </div>
</template>

<script>
export default {
    name:"Title",
    data(){
        return {
            count:0
        }
    },
    mounted(){
        this.$bus.$on("count",(count)=>{
            this.count = count
        })
    }
}
</script>

<style>

</style>